package com.monkeyk.sos.domain.model;

import java.io.Serializable;

import com.monkeyk.sos.domain.user.User;

/**
 * 管理员基本信息
 */
public class AdminDetails implements Serializable {

	private static final long serialVersionUID = 2627692145246282547L;
	private Long adminId;
	private String adminName;
	private String password;
	private int status;
	
	public Long getAdminId() {
		return adminId;
	}

	public void setAdminId(Long adminId) {
		this.adminId = adminId;
	}

	public String getAdminName() {
		return adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public User createUser() {
		User user = new User(adminId.intValue(),adminName,password);
		return user;
	}
}
